package com.homework.service.impl;

import com.homework.entity.Variety;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.homework.dao.VarietyMapper;
import com.homework.service.VarietyService;

import java.util.List;

@Service
public class VarietyServiceImpl implements VarietyService{

    @Resource
    private VarietyMapper varietyMapper;

    @Override
    public List<Variety> findAll() {
        return varietyMapper.selectAll();
    }
}
